/*
 * @Description: 文件信息
 */
class FileInfo {
    constructor() {
        this.size = 0;
        this.createTime = Date.now();
        this.modifyTime = Date.now();
    }

    SetID(fileId) {
        this.fileId = fileId;
    }

    GetID() {
        return this.fileId;
    }
    SetBusId(busId) {
        this.busId = busId;
    }

    GetBusId(busId) {
        return this.busId;
    }

    SetNodeId(nodeId) {
        this.nodeId = nodeId;
    }

    GetNodeId(nodeId) {
        return this.nodeId;
    }

    getBusId(busId) {
        this.busId = busId;
    }

    GetID() {
        return this.fileId;
    }

    SetName(name) {
        this.name = name;
    }

    GetName() {
        return this.name;
    }

    SetSize(size) {
        this.size = size;
    }

    GetSize() {
        return this.size;
    }

    SetType(type) {
        this.type = type;
    }

    GetType() {
        return this.type;
    }

    SetParentID(parentFolderId) {
        this.parentFolderId = parentFolderId;
    }

    GetParentID() {
        return this.parentFolderId || '';
    }

    SetCreateTime(createTime) {
        this.createTime = createTime;
    }

    GetCreateTime() {
        return this.createTime;
    }

    SetModifyTime(modifyTime) {
        this.modifyTime = modifyTime;
    }

    GetModifyTime() {
        return this.modifyTime;
    }
    SetFolderPath(folderPath) {
        this.folderPath = folderPath;
    }
    GetFolderPath() {
        return this.folderPath;
    }
}

module.exports = FileInfo;
